package cn.antsing.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Component
public class User0 {
    public User0(){
        System.out.println("**********************************User0--start***************************************");
        System.out.println("====================User0=构造函数-----------------");
    }
    @PostConstruct
    public void init(){
        System.out.println("====================User0=init()-----------------");
    }
    @PreDestroy
    public void destroy(){
        System.out.println("====================User0=destroy()-----------------");
    }

    private User0 user0;

    @Autowired
    public void setUser0(User0 user0){
        System.out.println("====================User0=setUser0-----------------");
        this.user0 = user0;
    }
}
